package com.wteam.PoJo.VO;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class walletPassword {

    @Pattern(regexp = "[0-9]{6}", message = "密码格式有误")
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;


    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "确认密码", required = true)
    private String Receicve;

}
